package com.ysbt.ysbtapplicationcontext;
import com.ysbt.bean.Monster;
import org.dom4j.DocumentException;

public class AppMain {
    public static void main(String[] args) throws DocumentException, ClassNotFoundException, InstantiationException, IllegalAccessException {
        YsbtApplicationContext ioc = new YsbtApplicationContext("beans.xml");
        Monster monster = (Monster) ioc.getBean("monster");
        System.out.println(monster);
    }
}
